import {auth} from '@/util/index'

const Layout = () => import('@/layout/index.vue')

export default {
    path: '/consumable',
    component: Layout,
    redirect: '/consumable',
    name: 'consumable.management',
    meta: {
        title: '设备与耗材管理',
        icon: 'el-icon-Briefcase'
    },
    children: [
        {
            path: 'equipment_application',
            name: '设备耗材申请',
            component: () => import('@/views/equipment_management/equipment_application.vue'),
            meta: {
                title: '设备耗材申请',
                auth: ["teacher", "student"]
            }
        },
        {
            path: 'equipment_approval',
            name: '设备耗材申请审批',
            component: () => import('@/views/equipment_management/equipment_approval.vue'),
            meta: {
                title: '设备耗材申请审批',
                auth: ["user", "admin"]
            }
        },
        {
            path: 'equipment_report',
            name: '报修管理',
            component: () => import('@/views/equipment_management/equipment_report.vue'),
            meta: {
                title: '报修管理',
                auth: ["user", "admin"]
            }
        }
    ]
}
